
    <template>
      <!-- 猜你喜欢 -->
      <view class="caption" :style="{ paddingTop: safeAreaInsets?.top + 'px' }">
        <view class="bt" @click="change">返回</view>
        <text class="text">资深月嫂</text>
      </view>

      <scroll-view class="scroll-view" scroll-y>
        <view class="guess">
        <navigator
          class="guess-item"
          v-for="item in guessList"
          :key="item.id"
          :url="`/pages/detail/detail`"
        >
          <image class="image" mode="aspectFill" :src="item.picture"></image>
          <view class="name"> {{ item.name }} </view>
          <view class="price">
            <text class="small">¥</text>
            <text>{{ item.price }}</text>
          </view>
        </navigator>
      </view>
      <view class="loading-text">
        {{ true ? '没有更多数据~' : '正在加载...' }}
      </view>
      </scroll-view>
    </template>
    
  <!-- <mydell></mydell> -->
  <script setup lang="ts">
  const change=( )=>{
    uni.navigateBack({
      delta:1
    })
  }
    // import { getHomeGoodsGuessLikeAPI } from '@/services/home'
    // import type { PageParams } from '@/types/global'
    // import type { GuessItem } from '@/types/home'
    import { onMounted, ref } from 'vue'
    const { safeAreaInsets } = uni.getSystemInfoSync()
    
    // // 分页参数
    // const pageParams: Required<PageParams> = {
    //   page: 1,
    //   pageSize: 10,
    // }
    // // 猜你喜欢的列表
    const guessList = ref([
{
    "id":"1",
    "name":" 版正式发布，开发一次，同时发布iOS、Android、H5、微信小程序、支付宝小程序",
    "price":"2000",
    "picture":"https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/shuijiao.jpg"
},
{
    "id":"1",
    "name":"妈咪1 版正式发布，开发一次，同时发布iOS、Android、H5、微信小程序、支付宝小程序",
    "price":"2000",
    "picture":"https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/shuijiao.jpg"
},
{
    "id":"1",
    "name":"妈咪1 版正式发布，开发一次，同时发布iOS、Android、H5、微信小程序、支付宝小程序",
    "price":"2000",
    "picture":"https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/shuijiao.jpg"
},
{
    "id":"1",
    "name":"妈咪1 版正式发布，开发一次，同时发布iOS、Android、H5、微信小程序、支付宝小程序",
    "price":"2000",
    "picture":"https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/shuijiao.jpg"
},
{
    "id":"1",
    "name":"妈咪1 版正式发布，开发一次，同时发布iOS、Android、H5、微信小程序、支付宝小程序",
    "price":"2000",
    "picture":"https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/shuijiao.jpg"
},
{
    "id":"1",
    "name":"妈咪1 版正式发布，开发一次，同时发布iOS、Android、H5、微信小程序、支付宝小程序",
    "price":"2000",
    "picture":"https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/shuijiao.jpg"
},
{
    "id":"1",
    "name":"妈咪1 版正式发布，开发一次，同时发布iOS、Android、H5、微信小程序、支付宝小程序",
    "price":"2000",
    "picture":"https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/shuijiao.jpg"
},{
    "id":"1",
    "name":"妈咪1 版正式发布，开发一次，同时发布iOS、Android、H5、微信小程序、支付宝小程序",
    "price":"2000",
    "picture":"https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/shuijiao.jpg"
},{
    "id":"1",
    "name":"妈咪1 版正式发布，开发一次，同时发布iOS、Android、H5、微信小程序、支付宝小程序",
    "price":"2000",
    "picture":"https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/shuijiao.jpg"
},

    ])
   
    
    </script>
    




<style lang="scss">
:host {
  display: block;
}
/* 分类标题 */
.caption {
  display: flex;
  justify-content: center;
  line-height: 1;
  padding: 36rpx 20rpx 40rpx;
  font-size: 32rpx;
  color: #262626;
  background-color: aqua;

  .text {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 4%;
    // padding: 20rpx 28rpx 0 30rpx;

    &::before,
    &::after {
      content: '';
      width: 20rpx;
      height: 20rpx;
      background-image: url(@/static/images/bubble.png);
      background-size: contain;
      margin: 0 10rpx;
    }
  }
  .bt{
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

/* 猜你喜欢 */
.guess {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 0 16rpx;
  background-color: #c3c1c1;
  .guess-item {
    width: 334rpx;
    padding: 15rpx 10rpx 15rpx;
    margin-bottom: 12rpx;
    margin-top: 12rpx;
    border-radius: 8rpx;
    overflow: hidden;
    background-color: #fff;
  }
  .image {

    width: 324rpx;
    height: 324rpx;
    margin-left: 5rpx;
    margin-right: 5rpx;
    //border: 2rpx solid #cf4444 ;
  }
  .name {
    height: 75rpx;
    margin: 10rpx 0;
    font-size: 26rpx;
    color: #262626;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .price {
    line-height: 1;
    padding-top: 4rpx;
    color: #cf4444;
    font-size: 26rpx;
  }
  .small {
    font-size: 80%;
  }
}
// 加载提示文字
.loading-text {
  text-align: center;
  font-size: 28rpx;
  color: #666;
  padding: 20rpx 0;
}
page {
background-color: #f7f7f7;
height: 100%;
display: flex;
flex-direction: column;
}
.scroll-view {
flex: 1;
height: 100%;
}
</style>